package com.infoauto.opc.gateway.service.impl;

import com.infoauto.opc.gateway.dao.HangBlowDao;
import com.infoauto.opc.gateway.model.gtm4.HangBlow;
import com.infoauto.opc.gateway.service.HangBlowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 上挂/吹气
 */
@Service
public class HangBlowServiceImpl implements HangBlowService {
    @Autowired
    private HangBlowDao dao;

    @Override
    public int insert(HangBlow hangBlow) {
        return dao.insert(hangBlow);
    }
    @Override
    public int update(HangBlow hangBlow) {
        return dao.update(hangBlow);
    }

    @Override
    public List<HangBlow> selectByProducTionTimeAndShift(String productionTime, Integer shift) {
        return dao.selectByProducTionTimeAndShift(productionTime,shift);
    }

    @Override
    public HangBlow select(String productionTime, Integer shift, Integer sn) {
        return dao.select(productionTime,shift,sn);
    }

    @Override
    public HangBlow selectById(String id) {
        return dao.selectById(id);
    }
}
